package com.platform.service.impl;

import com.platform.dao.StationDao;
import com.platform.entity.StationEntity;
import com.platform.service.StationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author zhangzehao
 * @email 862583291@qq.com
 * @date 2018-08-1 15:02:28
 */
@Service("stationService")
public class StationServiceImpl  implements StationService {

    @Autowired
    private StationDao stationDao;

    @Override
    public List<StationEntity> queryList(Map<String, Object> map) {
        return stationDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return stationDao.queryTotal(map);
    }

    @Override
    public int save(StationEntity station) {
        return stationDao.save(station);
    }

    @Override
    public StationEntity queryObject(Integer id) {
        return stationDao.queryObject(id);
    }

    @Override
    public int update(StationEntity station) {
        return stationDao.update(station);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return stationDao.deleteBatch(ids);
    }
}
